<script>
export default {
    name: "MoreDemo",
    props: {
        title1: String,
    }
}
</script>
<template>
    <div class="box1">
        <p>{{ title1 }}</p>
        <p>查看更多<img src="/img/4-min.png" alt=""></p>
    </div>
</template>
<style scoped lang="scss">
// 移动端
@media screen and (max-width:376px) {
    .box1 {
        display: flex;
        justify-content: space-between;
        width: 100%;
        background-color: white;

        p:nth-child(1) {
            font-size: 1.1rem;
            font-weight: bold;
            color: red;
        }

        p:nth-child(2) {
            display: flex;
            align-items: center;
            font-size: 0.8rem;
            color: #ebebeb;

            img {
                transform: rotate(180deg);
                width: 16px;
                height: 16px;
            }
        }
    }
}

// pc端
@media screen and (min-width:376px) {
    .box1 {
        width: 100%;
        display: flex;
        justify-content: space-between;

        p:nth-child(1) {
            font-size: 24px;
            font-weight: bold;
            color: red;
        }

        p:nth-child(2) {
            display: flex;
            align-items: center;
            font-size: 13px;
            color: #ebebeb;

            img {
                transform: rotate(180deg);
                width: 16px;
                height: 16px;
            }
        }
    }
}
</style>